﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace imarks.Entity
{
    /// <summary>
    /// 用户信息类
    /// </summary>
    public class User
    {
        /// <summary>
        /// ID
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        private string m_NickName;
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName
        {
            get
            {
                if (String.IsNullOrEmpty(m_NickName))
                {
                    return UserName;
                }
                else
                {
                    return m_NickName;
                }
            }
            set
            {
                m_NickName = value;
            }
        }

        /// <summary>
        /// 性别
        /// </summary>
        public SexType Sex { get; set; }
    }
}
